package com.ddch.testioc.test;

/**
 * created by 韦敏敏
 * on 2019/12/17
 */
public class Button {
    private OnClickListener listener;
    public void setOnClickListener(OnClickListener listener){
        this.listener = listener;
    }
    public void click(){
        if(listener != null){
            listener.onClick();
        }
    }
}
